﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.kflwyg
{
    public class UpdateWorkerAttendanceParam : AddWorkerAttendanceParam
    {
        public int id { get; set; }
    }

    public class AddWorkerAttendanceParamSql: AddWorkerAttendanceParam
    {
        /// <summary>
        /// 签到id用于更新考勤记录
        /// </summary>
        public string RecordID { get; set; }
    }

    public class AddWorkerAttendanceParam
    {
        /// <summary>
        /// 项目编码
        /// </summary>
        public string project_code { get; set; }

        /// <summary>
        /// 参建企业统一社会信用代码
        /// </summary>
        public string corp_code { get; set; }

        /// <summary>
        /// 参建企业名称
        /// </summary>
        public string corp_name { get; set; }

        /// <summary>
        /// 班组名称。同一个项目上的班组名称不能重复。
        /// </summary>
        public string team_name { get; set; }

        /// <summary>
        /// 证件类型。参考数据字典：人员证件类型字典表
        /// </summary>
        public string idcard_type { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        public string idcard_number { get; set; }

        /// <summary>
        /// 考勤时间。格式：yyyy-MM-dd HHmmss
        /// </summary>
        public string date { get; set; }

        /// <summary>
        /// 进出方向。参考数据字典：工人考勤方向字典表
        /// </summary>
        public string direction { get; set; }

        /// <summary>
        /// 通道
        /// </summary>
        public string channel { get; set; }

        /// <summary>
        /// 通行方式。参考数据字典：工人通行方式字典表
        /// </summary>
        public string attend_type { get; set; }

        /// <summary>
        /// WGS84经度
        /// </summary>
        public string lng { get; set; }

        /// <summary>
        /// WGS84纬
        /// </summary>
        public string lat { get; set; }

        //"project_code": "475000200621004460",
        //"corp_code": "91130826MA07RT7E9A",
        //"corp_name": "东创置业有限公司",
        //"team_name": "园林班组",
        //"idcard_type": "1",
        //"idcard_number": "410203197403075639",
        //"date": "2020-06-24 08:11:23",
        //"direction": "1",
        //"channel": "",
        //"attend_type": "001",
        //"lng": 114.342766,
        //"lat": 34.794585

    }
}
